package com.vegetable.modules.service.outbound;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vegetable.modules.entity.outbound.SalesOrderDetailStock;

import java.util.List;

/**
 * <p>
 * 销售订单走货对照库存表 服务类
 * </p>
 *
 * @author wangruijie
 * @since 2024-03-29
 */
public interface ISalesOrderDetailStockService extends IService<SalesOrderDetailStock> {

    List<SalesOrderDetailStock> selectByDetailId(Long detailId);

    List<SalesOrderDetailStock> selectByDetailId2(Long detailId);

    List<SalesOrderDetailStock> selectByOrderId(Long orderId);

    List<SalesOrderDetailStock> selectByDetailIds(List<Long> detailIds);


    List<SalesOrderDetailStock> selectByStockId(Long stockId);

    Integer deleteByStockId(Long stockId);

    Integer deleteByDetailId(Long detailId) throws Exception;

    Integer deleteById(Long id);

    List<SalesOrderDetailStock> selectList(Long orderId, Long detailId, Integer orderType);
}
